package Constent;

import java.text.SimpleDateFormat;

public enum FillConstent {
    Default,// tips 默认
    WhetherTheNullValueIsSaved {Boolean whetherSave = true;},// tips 空值是否保存 true 保存  false 舍弃
    DeleteSpecificFields {Boolean DeleteFields = true;Boolean whetherSave = true;},// tips 增加还是删除特定字段 true 删  false 不删
    SEQUENCE {Integer[] sort;SimpleDateFormat simpleDateFormat;};//tips 排序

    private Integer[] sort = {32, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};

    private Boolean whetherSave = true;//保留空值 false 空值丢掉

    private Boolean DeleteFields = true;//删除

    private SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd");


    public Integer[] getSort() {

        return sort;
    }

    public FillConstent setSort(Integer[] sort) {

        this.sort = sort;
        return this;
    }

    public Boolean getWhetherSave() {

        return whetherSave;
    }

    public FillConstent setWhetherSave(Boolean whetherSave) {

        this.whetherSave = whetherSave;
        return this;
    }

    public SimpleDateFormat getSimpleDateFormat() {

        return simpleDateFormat;
    }

    public void setSimpleDateFormat(SimpleDateFormat simpleDateFormat) {

        this.simpleDateFormat = simpleDateFormat;
    }

    public Boolean getDeleteFields() {

        return DeleteFields;
    }

    public FillConstent setDeleteFields(Boolean deleteFields) {

        DeleteFields = deleteFields;
        return this;
    }

    public static void main(String[] args) {

        System.out.println(FillConstent.SEQUENCE.getSort());
    }
}
